package spring1.gardon;

import java.util.*;

public class MyGardon {
	private String addr, tele;
	private List<String> flowers = new ArrayList<String>(0);
	private Map<String, String> emps = new HashMap<String, String>();

	public void setAddr(String addr) {
		this.addr = addr;
	}

	public void setTele(String tele) {
		this.tele = tele;
	}

	public void setFlowers(List<String> flowers) {
		this.flowers = flowers;
	}

	public void setEmps(Map<String, String> emps) {
		this.emps = emps;
	}

	public void intro() {
		System.out.println("这个花园位于" + addr + ",电话是" + tele);
		System.out.println("培育的品种有" + flowers);
		System.out.println("员工" + emps.size() + "人");
		// System.out.println(emps);
		if (emps == null)
			return;
		Iterator<String> ir = emps.keySet().iterator();
		while (ir.hasNext()) {
			String key = ir.next();
			String value = emps.get(key);
			System.out.println(key + "," + value);
		}
	}
}
